﻿using KPI.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KPI.Comm
{
    public static class EnumHelper
    {
        public static string ExamStausAsString(int status)
        {
            switch (status)
            {
                case (int)EnumExamStatus.NotPublish:
                    return "未发布";
                case (int)EnumExamStatus.Publish:
                    return "已发布";
                case (int)EnumExamStatus.Finish:
                    return "已完成";
                default:
                    break;
            }
            return "";
        }

        public static string QtTypeAsString(int qtType)
        {
            switch (qtType)
            {
                case (int)EnumQtType.SingleSelect:
                    return "单选题";
                case (int)EnumQtType.MutilSelect:
                    return "多选题";
                case (int)EnumQtType.TrueFalse:
                    return "对错题";
                case (int)EnumQtType.ShortAnswer:
                    return "简答题";
                default:
                    break;
            }
            return "";
        }
    }
}
